var url="";
var model;
var request;
var Lengqueshui;
var result=false;
function LoadData(){
result=false;
    request.post('http://'+url+'/app/CoolingPump!view.action?id='+GetQueryString('id')+'&projectId='+GetQueryString('projectId')).success(function(data){
        // if(data!=null&&data.length==0){
        //    $("#body").html("<div style='margin:100px auto;width:200px;height:100px;position: relative;text-align:center;'><img  style='position: relative;' src='image/nodata.png' width='62' height='66'/><br/><span style='font-size:14px;color:rgb(141,141,141);'>没有相关内容!</span></div>");
        //  }else
        //  {
        //  }
        console.log(data);
        model.detail=data;
        result=true;
         }).error(function(data,status,headers,config){
      if((status>=200&&status<300)||status===304||status===1223||status===0){
      $("body").html("网络访问出错！");
      }
      });
}

(function(){
	var app=angular.module('Lengqueshui',[ ]);
	app.controller('LengqueshuiController',['$http','$window',function($http,$window){
     Lengqueshui=this;
		request=$http;
    model=Lengqueshui;
    bindEvent();
    url='120.26.110.125/jncloud';
    Lengqueshui.index = GetQueryString('index');
    LoadData();
	}]);
})();
